﻿@model SAIM.Models.UserChangeProfileViewModel
@{
    ViewBag.Title = "Cambiar perfil";
}

<h2>@ViewBag.Title.</h2> 
@using (Html.BeginForm("ChangeProfile", "Users", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary("", new { @class = "text-danger" })
    @Html.HiddenFor(m => m.Id);
    <div class="form-group">
        <div class="panel panel-default table-responsive">
            <ul class="list-group col-xs-12" style="padding-left:15px;">
                <li class="list-group-item list-group-item-text"><b>Información del usuario</b> [ <a href="@Url.Action("Manage")/?id=@Model.Id">Regresar</a> ]</li>
                <li class="list-group-item" style="border-bottom: none;">
                    <dl class="dl-horizontal">
                        <dt>UPN:</dt>
                        <dd>@Model.Id</dd>
                    </dl>
                    <dl class="dl-horizontal">
                        <dt>Nombre:</dt>
                        <dd>@Model.UserName</dd>
                    </dl>
                    <dl class="dl-horizontal">
                        <dt>Correo electrónico:</dt>
                        <dd>@Model.Email</dd>
                    </dl>
                    <dl class="dl-horizontal">
                        <dt>Perfil</dt>
                        <dd>@Model.ProfileName</dd>
                    </dl>
                    <dl class="dl-horizontal">
                        <dt>Cambiar Perfil</dt>
                        <dd>@Html.DropDownListFor(m => m.Profile, Model.Profiles, new { @class = "form-control saim-sm-2" })</dd>
                    </dl>
                    <dl class="dl-horizontal">
                        <dt></dt>
                        <dd><input type="submit" class="btn btn-default" value="Confirmar" /></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
}
